package com.tenglong.page.pageController;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author chendongwei
 */
@Controller
public class PageController {

    @RequestMapping("/rest/index")
    public String index(HttpServletRequest request, Model model){
        return "index";
    }
    @RequestMapping("/rest/about")
    public String about(HttpServletRequest request, Model model){
        return "about";
    }
    @RequestMapping("/rest/contact")
    public String contact(HttpServletRequest request, Model model){
        return "contact";
    }
    @RequestMapping("/rest/price")
    public String price(HttpServletRequest request, Model model){
        return "price";
    }
    @RequestMapping("/rest/projects")
    public String projects(HttpServletRequest request, Model model){
        return "projects";
    }
    @RequestMapping("/rest/services")
    public String services(HttpServletRequest request, Model model){
        return "services";
    }
    @RequestMapping("/rest/lists")
    public String s(HttpServletRequest request, Model model){
        return "services";
    }
}
